# futu open-api
FUTU_OPEND_HOST = '127.0.0.1'
FUTU_OPEND_PORT = 12002

# mysql
sql_host = '47.107.245.222'
sql_user = 'lcssxl'
sql_pass = 'Zhongde0-!@#'
sql_db = 'money'
sql_port = 3306
DB_MINCACHED = 5

# redis
# redis_ip = '47.107.245.222'
# redis_port = 6378
# redis_auth = 'zhongde_dev'
redis_ip = '127.0.0.1'
redis_port = 6379
redis_auth = 'hongyi_654321'
redis_db = 8

''' TWS API - 
主盈透账号   4002
子盈透账号：
4001    4003
4004    4005    4022
4021
'''
twsserver_port = ("127.0.0.1", 4001)
# twsserver_port = ("159.75.225.228", 4002)
twsserver_port1 = ("127.0.0.1", 4003)
twsserver_port2 = ("127.0.0.1", 4021)
twsserver_port3 = ("127.0.0.1", 4022)   # HK
twsserver_port4 = ("127.0.0.1", 4004)   # HK
twsserver_port5 = ("127.0.0.1", 4005)   # HK

# REST API - Client Portal Web ib gateway
PORTAL_WEB_PORT = "5000"  # 默认端口
PORTAL_WEB_SEVER = "https://192.168.122.1:{port}/v1/api"

# RabbitMq
rabbitmq_host = '127.0.0.1'
rabbitmq_port = 5672
rabbitmq_user = 'mq'
rabbitmq_passwd = '123456'
rabbitmq_queue = 'us-stocks-mq'


